package com.zjw.xm.xmorder.controller;


import com.zjw.xm.entity.CrBook;
import com.zjw.xm.xmorder.mapper.CrCategoryMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import com.zjw.xm.entity.CrCategory;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zjw1
 * @since 2022-08-03
 */
@RestController
@RequestMapping("/xm/crCategory")
public class CrCategoryController {

    @Resource
    CrCategoryMapper categoryMapper;

    @GetMapping("queryCategory")
    List<CrCategory> queryCategory(){
        return  categoryMapper.queryCategory();
    }

    @GetMapping("selectCategory")
    List<CrCategory> selectCategory(){
        return  categoryMapper.selectCategory();
    }


}

